home *** CD-ROM | disk | FTP | other *** search
- Path: alterdial.uu.net!not-for-mail
- From: rogerst@approach.com (Tom Rogers)
- Newsgroups: comp.lang.c
- Subject: Re: How to tell if a file exists in C
- Date: Fri, 02 Feb 1996 22:38:45 GMT
- Message-ID: <4etpa5$f3o@alterdial.UU.NET>
- References: <4eqkj6$ipo@charm.magnus.acs.ohio-state.edu>
- NNTP-Posting-Host: 198.177.211.46
- X-Newsreader: Forte Free Agent 1.0.82
-
- xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu) wrote:
-
- >Hi, how do I find out if a file already exists
- >in UNIX C? On PCs I would do a findfirst/findnext,
- >is there an equivalent on Unix?
-
- >Answer CCed to my email appreciated. Thanks.
-
- >Xiaoyi
-
- Check out IO.H, which should be ported to most systems. It includes
- the access() function which does what you want.
-
- Tom Rogers
-
-
-